home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Webster's Millennium Amer…Sign Language Dictionary
/
ASL.ISO
/
mac
/
SKILLS.dir
/
00061_Script_START GAME rollover script
< prev
next >
Wrap
Text File
|
2001-09-05
|
3KB
|
111 lines
on mouseUp
global whichSkills
if whichSkills = "practice/test" then test
if whichSkills = "concentration" then conc
go the frame
end
on conc
global gGameType,NumPlayers,gDataSource
set notDone = false
if not notDone and gGameType = "" then
alertBox "Choose fs or asl signs."
set notDone = true
end if
if not notDone and gDataSource = "" and gGameType = "qt" then
alertBox "Choose data source."
set notDone = true
end if
if not notDone and NumPlayers = 0 then
alertBox "Choose number of players."
set notDone = true
end if
repeat with i = 3 to 11
puppetSprite i, false
end repeat
set the visible of sprite 36 = true
repeat with i = 3 to 7
set the visible of sprite i = true
end repeat
if notDone then
go frame frame()-1
else
put " " into field "p1 title"
put " " into field "p1 score"
put " " into field "p2 title"
put " " into field "p2 score"
go frame "concentration"&&gGameType
unload
end if
--alert "go to game"
end
on test
global gTest,gDataType,gTestType,gNumQs,gDataSource
repeat with i = 3 to 17
puppetSprite i, false
end repeat
set the visible of sprite 35 = false --turns off hints every new game
updatestage
set notDone = false
if not notDone and gDataType = "" then
alertBox "Choose data type."
set notDone = true
end if
if not notDone and gTestType = "" then
alertBox "Choose test type."
set notDone = true
end if
if not notDone and gNumQs = 0 then
alertBox "Choose # of questions."
set notDone = true
end if
if not notDone and not (gDatatype = "fs") and gDataSource = "" then
alertBox "Choose data source."
set notDone = true
end if
if notDone then
go frame frame()-1
else
if (gTestType = "multiple choice") then setUpTest
else set the visible of sprite 39 = false
put "00:00" into field "numTime"
put "0 of"&&gNumQs into field "whichq"
put "Points Scored: 0" into field "testScore"
repeat with i = 43 to 46
set the visible of sprite i = false
end repeat
if gTest then
if (gTestType = "multiple choice") then go frame "testm"
else
put "" into field "fill-in word"
go frame "test"
end if
else
if gDatatype = "fs" then set the visible of sprite 36 = true
else set the visible of sprite 36 = false
if (gTestType = "multiple choice") then go frame "pract"
else
put "" into field "fill-in word"
go frame "practf"
end if
end if
getQuestions gNumQs,gDataSource,gDataType
--alert "go to practice or test"
repeat with i = 13 to 17
set the visible of sprite i = true
end repeat
unload
updateStage
end if
end